package com.ququ.syb.withdraworder.dao.impl;

import com.ququ.syb.common.pojo.WithdrawOrder;
import com.ququ.syb.withdraworder.dao.WithdrawOrderDao;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public class WithdrawOrderDaoImpl extends BaseDaoImpl<WithdrawOrder> implements WithdrawOrderDao {
    @Override
    public WithdrawOrder getWithdrawOrder(String tradenum) {
        WithdrawOrder withdrawOrder = new WithdrawOrder();
        withdrawOrder.setTradenum(tradenum);
        return getEntity(withdrawOrder);
    }

    @Override
    public WithdrawOrder getWithdrawOrderByOutOrderNum(String outordernum) {
        WithdrawOrder withdrawOrder = new WithdrawOrder();
        withdrawOrder.setOutordernum(outordernum);
        return getEntity(withdrawOrder);
    }

    @Override
    public List<WithdrawOrder> listWithdrawOrderByPayTradenum(String paytradenum) {
        WithdrawOrder withdrawOrder = new WithdrawOrder();
        withdrawOrder.setPaytradenum(paytradenum);
        return getList(withdrawOrder);
    }

    @Override
    public List<WithdrawOrder> listWithdrawOrder(WithdrawOrder withdrawOrder) {
        return getList(withdrawOrder);
    }
}
